import request from "../utils/request";

export function getHistory(userId){
    return request({
        method: 'GET',
        url: '/getHistory/'+userId,
      })
}

export function saveHistory(data){
    return request({
        method: 'POST',
        url: '/saveHistory',
        data:data
      })
}

